from sklearn.metrics import precision_score

def test1():
    a = [1,2,3]
    b = [1,2,2]
    print(precision_score(a, b, average="micro"))

if __name__ == '__main__':
    test1()